package com.alks.entity.data.enums;

import lombok.Getter;

/**
 * @author MS
 * &#064;create  2021-08-04 16:08
 */
@Getter
public enum RedisKeyEnum {
    /**
     *
     */
    SCHEDULE_UP("存储最近一次更新时间","生控部_成型预排作业","BC_DW_SCHEDULE_UP",5),
    COST_DETAIL("费用明细单据号生成","财务部_费用结算作业","RSF",5),
    COST_DETAIL2("费用明细单据号生成","财务部_费用结算作业","F",5),
    CHARGE_BACK("内联扣款数据","财务部_费用结算作业","KkMap",0),
    RS_AP_AMT("结算资料单据生成","财务部_财务结算作业","YF",4),
    CONSUME_OUT("耗品出库单据生成","仓储部_耗品出库查询","X",5),
    PACK_IO("包材入库单据生成","仓储部_包材出入库作业","Z",5),
    SUPP_DISPATCH("补料派工单号生成","生产部_补料派工作业","B",5),
    BF_AP_AMT("结算资料单据生成","财务部_财务结算作业(1+2+3+4)","YF",5),
    DD_IN("大底收料打印单生成","大底收发料输入","DDR",5),
    DD_OUT("大底发料打印单生成","大底收发料输入","DDC",5),
    XD_IN("鞋垫收料打印单生成","鞋垫收发料输入","XDR",5),
    XD_OUT("鞋垫发料打印单生成","鞋垫收发料输入","XDC",5);

    private final String message;
    private final String path;
    private final String key;
    private final int length;

    RedisKeyEnum(String message,String path,String key,int length) {
        this.message = message;
        this.path = path;
        this.key = key;
        this.length = length;
    }

    public static String getKey(RedisKeyEnum redisKeyEnum){
        return redisKeyEnum.getPath()+redisKeyEnum.getKey();
    }
}
